﻿<?php
require("conexao.php");

?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Categoria</title>
<style type="text/css">
<!--
.style1 {
	font-size: 18px;
	font-weight: bold;
}
-->
</style>
</head>

<body>

 
  <div id="titulo">Lista de Administradores
      </div>
  <table border="0" cellpadding="0" cellspacing="0" align="center" >
      <tr class="yellow"> 
        <td width="20%"><div align="center"><strong>Nome
        </strong></div></td>
        <td width="28%"><div align="center"><strong>Email</strong></div></td>
        <td width="27%"><div align="center"><strong>Login</strong></div></td>
        <td width="14%"><div align="center"><strong>Senha</strong></div></td>
        <td colspan="2"><div align="center"><strong>Ação</strong></div></td>
      </tr>
      <?php $sql = mysql_query("select * from administracao");
		while ($coluna = mysql_fetch_array($sql)) { ?>
      <tr>
        <td><?php echo $coluna["nome"] ?> </td>
        <td><?php echo $coluna["email"] ?></td>
        <td><?php echo $coluna["login"] ?></td>
        <td><?php echo $coluna["senha"] ?></td>
        <td width="8%"><a href="principal.php?link=7&amp;acao=Alterar&amp;id= <?php echo $coluna["id_adm"]; ?>" >
        <div align="center"><img src="imagens/lapis.gif" width="20" height="20" border = "0"/></div>
        </a></td>
  <td width="9%"><a href="principal.php?link=7&amp;acao=Excluir&amp;id= <?php echo $coluna["id_adm"]; ?>" >
      <div align="center"><img src="imagens/x.gif" width="20" height="20" border="0" /></div>
        </a></td>
    </tr>
      <?php } ?>
      <tr>
        <td colspan="6"><div align="right"><a href="principal.php?link=7"><img src="imagens/inserir.gif" width="44" height="39" border="0" /></a></div></td>
      </tr>
</table>
    



</body>
</html>
